President Donald Trump was criticized on Wednesday for his decision to ban transgender people from serving in the U.S. military.